package com.insurance.service.impl;

import com.insurance.mapper.ShopManageMapper;
import com.insurance.pojo.Stores;
import com.insurance.service.ShopManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: drc
 * Date: 2020/10/28 11:31
 * Description:
 * Version: V1.0
 */
@Service
public class ShopManageServiceimpl implements ShopManageService {
    @Autowired(required = false)
    private ShopManageMapper shopManageMapper;
    @Override
    public List<Map> findShopManage(String stores_name) {
        return shopManageMapper.findShopManage(stores_name);
    }

    @Override
    public List<Map> findAllShopManage() {
        return shopManageMapper.findAllShopManage();
    }

    @Override
    public int addShopManage(Stores stores) {
        return shopManageMapper.addShopManage(stores);
    }

    @Override
    public int updateShopManage(Stores stores) {
        return shopManageMapper.updateShopManage(stores);
    }

    @Override
    public int delShopManage(int stores_id) {
        return shopManageMapper.delShopManage(stores_id);
    }

    @Override
    public List<Stores> ShopExcelExport() {
        return shopManageMapper.ShopExcelExport();
    }
}
